import { createStore } from 'vuex'
// 持久化插件
import createPersistedstate from 'vuex-persistedstate'
import user from '@/store/module/user.js'
import category from '@/store/module/category.js'
export default createStore({
  state: {},
  getters: {},
  mutations: {},
  actions: {},
  modules: {
    user,
    category
  },
  // 持久化数据
  plugins: [
    createPersistedstate({
      key: 'rabbit',
      paths: ['user']
    })
  ]
})
